	#include<iostream>
	using namespace std;
	int n;
	int main()
	{
		cin >> n;
		int ans = 0;
		if (n == 1) {
			cout << 1 << endl;
			return 0;
		}
		for (int i = 2; i <= n; i++) {
			if (n % i == 0) {
				while (n % i == 0) {
					n /= i;
					ans++;
				}
			}
		}
		cout << ans << endl;
		return 0;
	}